﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class WaybillInfoToCRMDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class WaybillInfoToCRMRequestDto
    {
        /// <summary>
        /// 描述 : 开始时间 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "createTimeStart")]
        public long createTimeStart { get; set; }

        /// <summary>
        /// 描述 : 结束时间 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "createTimeEnd")]
        public long createTimeEnd { get; set; }
    }


    /// <summary>
    /// 外部接口返回格式
    /// </summary>
    public class Ri_WaybillInfoToCRMResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "status")]
        public int status { get; set; }

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "message")]
        public string message { get; set; }

        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "data")]

        public List<Ri_WaybillInfoToCRMResponseDataDto> data { get; set; }

    }

    public class Ri_WaybillInfoToCRMResponseDataDto
    {
        /// <summary>
        /// 描述 : 配载单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "logisticsDetailsId")]
        public string  logisticsDetailsId { get; set; }

        /// <summary>
        /// 描述 : 运单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "transportOrderNo")]
        public string transportOrderNo { get; set; }
        /// <summary>
        /// 描述 : 承运方 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "carrierName")]
        public string carrierName { get; set; }
        /// <summary>
        /// 描述 : 承运方编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "carrierCode")]
        public string carrierCode { get; set; }
        /// <summary>
        /// 描述 : 车牌号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "planeNumber")]
        public string planeNumber { get; set; }
        /// <summary>
        /// 描述 : 司机姓名 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "driverMaName")]
        public string driverMaName { get; set; }
        /// <summary>
        /// 描述 : 司机电话 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "driverMaPhone")]
        public string driverMaPhone { get; set; }
        /// <summary>
        /// 描述 : 节点名称
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "metadataName")]
        public string metadataName { get; set; }

        /// <summary>
        /// 描述 : 状态
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "status")]
        public string status { get; set; }

        /// <summary>
        /// 描述 : 执行时间
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "operatorTime")]
        public long operatorTime { get; set; }

        /// <summary>
        /// 描述 : 顺序
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sort")]
        public string sort { get; set; }

        /// <summary>
        /// 描述 : 物料名称
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "goodsName")]
        public string goodsName { get; set; }

        /// <summary>
        /// 描述 : 物料编码
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "goodsCode")]
        public string goodsCode { get; set; }

        /// <summary>
        /// 描述 : 物料名称
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "goodsTotal")]
        public double goodsTotal { get; set; }

        /// <summary>
        /// 描述 : 来源单号
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "orderNo")]
        public string orderNo { get; set; }

        /// <summary>
        /// 描述 : 销售行号
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "subOrderNo")]
        public string subOrderNo { get; set; }


        /// <summary>
        /// 描述 : 销售订单号
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "saleNo")]
        public string saleNo { get; set; }


        /// <summary>
        /// 描述 : 销售行ID
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "subSaleNo")]
        public string subSaleNo { get; set; }


        /// <summary>
        /// 描述 : 接收类型
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "loadType")]
        public string loadType { get; set; }

        /// <summary>
        /// 描述 : 客户编码
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "deliverCompanyCode")]
        public string deliverCompanyCode { get; set; }

        /// <summary>
        /// 描述 : 客户名称
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "deliverCompanyName")]
        public string deliverCompanyName { get; set; }

        /// <summary>
        /// 描述 : 收货地址
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "loadAddress")]
        public string loadAddress { get; set; }
        /// <summary>
        /// 描述 : 收货人
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "deliverUserName")]
        public string deliverUserName { get; set; }
        /// <summary>
        /// 描述 : 收货电话
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "deliverUserPhone")]
        public string deliverUserPhone { get; set; }

        /// <summary>
        /// 描述 : 附件 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "filePoolList")]

        public List<filePoolList> filePoolList { get; set; }


    }

    public class filePoolList
    {
        /// <summary>
        /// 描述 : 文件名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "fileName")]
        public string fileName { get; set; }

        /// <summary>
        /// 描述 : 链接 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "filePath")]
        public string filePath { get; set; }
       

    }

    

    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class WaybillInfoToCRMResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "code")]
        public int code { get; set; }

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "message")]
        public string message { get; set; }

    }
}
